package com.pg.agent.engine.client.vo;

import lombok.Data;

@Data
public class Property {

    private String type;

    private String description;

    public Property() {
    }

    public Property(Integer paramType, String description) {
        this.type = typeTrans(paramType);
        this.description = description;
    }

    private String typeTrans(Integer paramType) {

        String type = "string";
        //1.数字，2.字符串 3.布尔 4.数组
        if (paramType == 1) {
            type = "number";
        } else if (paramType == 3) {
            type = "boolean";
        } else if (paramType == 4) {
            type = "array";
        }
        return type;
    }
}